DECLARE @Command VARCHAR(MAX)

IF (CAST(SERVERPROPERTY('ProductVersion') as VARCHAR(50)) LIKE '10.5%' OR CAST(SERVERPROPERTY('ProductVersion') as VARCHAR(50)) LIKE '11%')
BEGIN
	SELECT @Command = REPLACE(sjs.command,'@CleanupTime','@Compress = ''Y'', @CleanupTime') FROM msdb.dbo.sysjobsteps sjs
	JOIN msdb.dbo.sysjobs sj
	ON sjs.job_id = sj.job_id
	WHERE sjs.step_id = 1 AND sj.name = 'DatabaseBackup - SYSTEM_DATABASES - FULL'

	EXEC msdb..sp_update_jobstep @job_name = 'DatabaseBackup - SYSTEM_DATABASES - FULL', @step_id = '1', @command = @Command

	SELECT @Command = REPLACE(sjs.command,'@CleanupTime','@Compress = ''Y'', @CleanupTime') FROM msdb.dbo.sysjobsteps sjs
	JOIN msdb.dbo.sysjobs sj
	ON sjs.job_id = sj.job_id
	WHERE sjs.step_id = 1 AND sj.name = 'DatabaseBackup - USER_DATABASES - DIFF'

	EXEC msdb..sp_update_jobstep @job_name = 'DatabaseBackup - USER_DATABASES - DIFF', @step_id = '1', @command = @Command

	SELECT @Command = REPLACE(sjs.command,'@CleanupTime','@Compress = ''Y'', @CleanupTime') FROM msdb.dbo.sysjobsteps sjs
	JOIN msdb.dbo.sysjobs sj
	ON sjs.job_id = sj.job_id
	WHERE sjs.step_id = 1 AND sj.name = 'DatabaseBackup - USER_DATABASES - FULL'

	EXEC msdb..sp_update_jobstep @job_name = 'DatabaseBackup - USER_DATABASES - FULL', @step_id = '1', @command = @Command

	SELECT @Command = REPLACE(sjs.command,'@CleanupTime','@Compress = ''Y'', @CleanupTime') FROM msdb.dbo.sysjobsteps sjs
	JOIN msdb.dbo.sysjobs sj
	ON sjs.job_id = sj.job_id
	WHERE sjs.step_id = 1 AND sj.name = 'DatabaseBackup - USER_DATABASES - LOG'

	EXEC msdb..sp_update_jobstep @job_name = 'DatabaseBackup - USER_DATABASES - LOG', @step_id = '1', @command = @Command
END